package com.njitt.bysj.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ToString
public class QualityHistoryBean {
    private Integer qualityId;
    private Integer id;
    private ProjectQualityBean projectQualityBean;
    private PurchaseRequestBean purchaseRequestBean;
    private Integer purchaseId;
    private ProjectBean projectBean;
    private Integer qualityResult;
    private EmpBean empBean;
    private Integer qualityerId;

    private String qualityNo;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date qualityData;

    private Integer qualityStatus;

    private String qualityDescribe;

    private Integer projectId;

    // 用以接收采购订单号

    public PurchaseRequestBean getPurchaseRequestBean() {
        return purchaseRequestBean;
    }

    public void setPurchaseRequestBean(PurchaseRequestBean purchaseRequestBean) {
        this.purchaseRequestBean = purchaseRequestBean;
    }

    public Integer getQualityId() {
        return qualityId;
    }

    public void setQualityId(Integer qualityId) {
        this.qualityId = qualityId;
    }

    public ProjectQualityBean getProjectQualityBean() {
        return projectQualityBean;
    }

    public void setProjectQualityBean(ProjectQualityBean projectQualityBean) {
        this.projectQualityBean = projectQualityBean;
    }

    public ProjectBean getProjectBean() {
        return projectBean;
    }

    public void setProjectBean(ProjectBean projectBean) {
        this.projectBean = projectBean;
    }

    public EmpBean getEmpBean() {
        return empBean;
    }

    public void setEmpBean(EmpBean empBean) {
        this.empBean = empBean;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(Integer purchaseId) {
        this.purchaseId = purchaseId;
    }

    public Integer getQualityResult() {
        return qualityResult;
    }

    public void setQualityResult(Integer qualityResult) {
        this.qualityResult = qualityResult;
    }

    public Integer getQualityerId() {
        return qualityerId;
    }

    public void setQualityerId(Integer qualityerId) {
        this.qualityerId = qualityerId;
    }

    public String getQualityNo() {
        return qualityNo;
    }

    public void setQualityNo(String qualityNo) {
        this.qualityNo = qualityNo == null ? null : qualityNo.trim();
    }

    public Date getQualityData() {
        return qualityData;
    }

    public void setQualityData(Date qualityData) {
        this.qualityData = qualityData;
    }

    public Integer getQualityStatus() {
        return qualityStatus;
    }

    public void setQualityStatus(Integer qualityStatus) {
        this.qualityStatus = qualityStatus;
    }

    public String getQualityDescribe() {
        return qualityDescribe;
    }

    public void setQualityDescribe(String qualityDescribe) {
        this.qualityDescribe = qualityDescribe == null ? null : qualityDescribe.trim();
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }
}